package com.jy.wms.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

/**
 * Created by syh on 2018/8/4.
 */
@Controller
@RequestMapping("/qualityRouter")
public class WmsqualityRouter {
    /**
     * 出库质检任务页面跳转
     * @param model
     * @param session
     * @return
     */
    @RequestMapping(value = "getQualityList")
    public String getQualityList(Model model, HttpSession session){
        return  "wmsquality/qualityList";
    }

    /**
     * 跳转查看任务明细页面(list页面的第一个查看)
     * @param sszjdid
     * @param model
     * @return
     */
    @RequestMapping(value = "toChakanMxOne")
    public String toChakanMx(String sszjdid,Model model){
        model.addAttribute("sszjdid",sszjdid);
        return  "wmsquality/qualityMxOne";
    }

    /**
     * 跳往生成页面
     * @param id
     * @param model
     * @return
     */
    @RequestMapping(value = "toAddQualityRw")
    public String toAddQualityRw(String id,Model model){
        model.addAttribute("id",id);
        return  "wmsquality/addQualityRw";
    }

    /**
     * 跳转查看任务明细页面(list页面的第二个查看)
     * @param id
     * @param model
     * @return
     */
    @RequestMapping(value = "toChakanMxTwo")
    public String toChakanMxTwo(String id,Model model){
        model.addAttribute("id",id);
        return  "wmsquality/qualityMxTwo";
    }
}